#ifndef DICT_YOUDAO_H
#define DICT_YOUDAO_H
#include "site.h"
#include <string>
class DictYouDao : public Site
{
    public:
        DictYouDao(const std::string &name, const std::string &url);
		std::string parse(const std::string &data) override;
		std::string composeUrl(std::string data) override;
        bool login(const std::string&user, const std::string &passwd) override;
        void logout() override;
		
	private:
		std::string _wordUrl;
		std::string _sentenceUrl;
};
#endif //BAIDUYUN_H